﻿using CPPEI.Coolzon.Common;
using CPPEI.Coolzon.Data;
using CPPEI.Coolzon.Data.MainServiceData;
using CPPEI.Coolzon.Server.CacheData;
using CPPEI.Coolzon.Service.Contract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Server.ServiceImplement
{
    public class ReqScriptNetEventHandler : BaseHandler<ReqScriptNetEventData, RespScriptNetEventData>
    {
        public ReqScriptNetEventHandler()
            : base(Service.Contract.REQUEST_SCENARIO.SCENE, Service.Contract.REQUEST_COMMAND.SCENE.SCRIPTNETEVENT)
        {
        }

        protected override RespScriptNetEventData OnHandle(Data.MainServiceData.Request request, ReqScriptNetEventData requestData)
        {
            RespScriptNetEventData responseData = new RespScriptNetEventData();
            responseData.EventName = requestData.EventName;
            responseData.DataString = requestData.DataString;
            responseData.Scene = requestData.Scene;
            return responseData;
        }
    }
}
